﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPages/Core.Master"
    CodeBehind="TodaySammary.aspx.cs" Inherits="Pap.Web.Modules.Loan.Views.TodaySammary"
    meta:resourcekey="PageResource1" %>

<%@ Register Src="~/Modules/Loan/Views/Controls/TodayExecutedLoansControl.ascx" TagName="TodayExecutedLoansControl"
    TagPrefix="executedControls" %>
<%@ Register Src="~/Modules/Loan/Views/Controls/TodayPaymentsControl.ascx" TagName="TodayPaymentsControl" TagPrefix="payments" %>
<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <ext:Store runat="server" ID="storeProjectBalances">
        <Reader>
            <ext:JsonReader>
                <Fields>
                    <ext:RecordField Name="ProjectName" />
                    <ext:RecordField Name="LockerBalance" />
                    <ext:RecordField Name="BankBalance" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:FitLayout runat="server" IDMode="Legacy" meta:resourcekey="FitLayoutResource1">
        <ext:FormPanel runat="server" AutoHeight="true" meta:resourcekey="FormPanelResource1">
            <Body>
                <ext:FormLayout runat="server" ElementStyle="" ItemCls="" meta:resourcekey="FormLayoutResource1">
                    <ext:Anchor>
                        <ext:Button runat="server" ID="btnCloseDay" Text="<%$Resources:btnCloseDayText %>">
                            <AjaxEvents>
                                <Click OnEvent="BtnCloseDay_Clicked">
                                    <EventMask ShowMask="true" />
                                    <Confirmation ConfirmRequest="true" Message="<%$Resources:MSGCloseDayConirm %>" Title="<%$Resources:TitleCloseDayConirm %>" />
                                </Click>
                            </AjaxEvents>
                        </ext:Button>
                    </ext:Anchor>
                    <ext:Anchor>
                        <ext:Panel runat="server" AutoHeight="True" meta:resourcekey="PanelResource1">
                            <Body>
                                <executedControls:TodayExecutedLoansControl ID="TodayExecutedLoansControl1" runat="server" />
                            </Body>
                        </ext:Panel>
                    </ext:Anchor>
                    <ext:Anchor>
                        <ext:Panel ID="Panel1" runat="server" AutoHeight="True" meta:resourcekey="Panel1Resource1">
                            <Body>
                                <payments:TodayPaymentsControl ID="TodayPaymentsControl1" runat="server" />
                            </Body>
                        </ext:Panel>
                    </ext:Anchor>
                    <ext:Anchor>
                        <ext:Panel runat="server" AutoHeight="true">
                            <Body>
                                <ext:GridPanel runat="server" ID="ProjectsBalances" StoreID="storeProjectBalances"
                                    AutoHeight="true" Title="<%$Resources:TitleBalance%>">
                                    <ColumnModel>
                                        <Columns>
                                            <ext:Column DataIndex="ProjectName" Header="<% $Resources:HeaderProjectName %>" />
                                            <ext:Column DataIndex="LockerBalance" Header="<% $Resources:HeaderLockerBalance %>" />
                                            <ext:Column DataIndex="BankBalance" Header="<% $Resources:HeaderBankBalance %>" />
                                        </Columns>
                                    </ColumnModel>
                                </ext:GridPanel>
                            </Body>
                        </ext:Panel>
                    </ext:Anchor>
                </ext:FormLayout>
            </Body>
        </ext:FormPanel>
    </ext:FitLayout>
</asp:Content>
